﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SoldierView.aspx.cs" Inherits="TownshipEnterprise_SoldierView"
 StylesheetTheme="Content" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>士兵详细信息</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin: 5px">
        <table border="0px" cellpadding="0" cellspacing="0" class="dialog" width="100%">
            <caption>
                <span>士兵详细信息</span></caption>
            <tr>
                <td>
                    <table border="0" cellpadding="4" cellspacing="0" width="100%">
                        <tr>
                            <td style="width: 75px">
                                姓名：
                            </td>
                            <td>
                                <asp:Label ID="SoldierName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                士兵证号：
                            </td>
                            <td>
                                <asp:Label ID="CardID" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td rowspan="8" align="right">
                                <asp:Image ID="imgPhoto" runat="server" Width="160" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                民族：
                            </td>
                            <td>
                                <asp:Label ID="NationName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                性别：
                            </td>
                            <td>
                                <asp:Label ID="Sex" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                出生日期：
                            </td>
                            <td>
                                <asp:Label ID="Birthday" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                籍贯：
                            </td>
                            <td>
                                <asp:Label ID="NativeName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                家庭出身：
                            </td>
                            <td>
                                <asp:Label ID="BackgroundName" runat="server"></asp:Label>
                            </td>
                            <td class="style3">
                                婚姻状况：
                            </td>
                            <td>
                                <asp:Label ID="Marriage" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                文化程度：
                            </td>
                            <td>
                                <asp:Label ID="CultureName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                宗教信仰：
                            </td>
                            <td>
                                <asp:Label ID="ReligionName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                政治面貌：
                            </td>
                            <td>
                                <asp:Label ID="Political" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                特长：
                            </td>
                            <td>
                                <asp:Label ID="Hobby" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                入伍时间：
                            </td>
                            <td>
                                <asp:Label ID="JoinDate" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                入团时间：
                            </td>
                            <td>
                                <asp:Label ID="YouthDate" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                入党时间：
                            </td>
                            <td>
                                <asp:Label ID="PartyDate" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                警衔：
                            </td>
                            <td>
                                <asp:Label ID="RankName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                职务：
                            </td>
                            <td>
                                <asp:Label ID="DutyName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                专业一：
                            </td>
                            <td>
                                <asp:Label ID="Speciality1Name" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                专业二：
                            </td>
                            <td>
                                <asp:Label ID="Speciality2Name" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                入伍所在地：
                            </td>
                            <td>
                                <asp:Label ID="JoinPlace" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                入伍批准书编号：
                            </td>
                            <td>
                                <asp:Label ID="ConfirmID" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                士兵登记表编号：
                            </td>
                            <td>
                                <asp:Label ID="RegisterID" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                士官选取表编号：
                            </td>
                            <td>
                                <asp:Label ID="ChooseID" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                身高：
                            </td>
                            <td>
                                <asp:Label ID="Height" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                士官注册表编号：</td>
                            <td>
                                <asp:Label ID="SGRegNO" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                士官注册时间：</td>
                            <td>
                                <asp:Label ID="SGGegDate" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                专业训练：</td>
                            <td colspan="4">
                                <asp:Label ID="Training" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                奖惩：</td>
                            <td colspan="4">
                                <asp:Label ID="Reward" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                入伍后简历：</td>
                            <td colspan="4">
                                <asp:Label ID="Resume" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                备注：</td>
                            <td colspan="4">
                                <asp:Label ID="Remark" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                体重：
                            </td>
                            <td>
                                <asp:Label ID="Weight" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                更新人：
                            </td>
                            <td>
                                <asp:Label ID="SetUserName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                单位：
                            </td>
                            <td>
                                <asp:Label ID="DepartmentName" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                更新时间：
                            </td>
                            <td>
                                <asp:Label ID="SetTime" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                家庭住址：
                            </td>
                            <td>
                                <asp:Label ID="HomePlace" runat="server" CssClass="labelBlod"></asp:Label>
                            </td>
                            <td class="style3">
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;
                            </td>
                            <td class="style3">
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="PoliticalEducation" runat="server"></asp:Label>
                            </td>
                            <td class="style3">
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="OPerationTheory" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="Queue" runat="server"></asp:Label>
                            </td>
                            <td class="style3">
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="Skill" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="Ordinance" runat="server"></asp:Label>
                            </td>
                            <td class="style3">
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="Stamina" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:Label ID="lblDelete" runat="server" Text="该用户已删除。" Visible="false" ForeColor="Red"></asp:Label>
        <asp:Label ID="lblTitle" runat="server"></asp:Label>
        <asp:Button ID="btnRestore" runat="server" Text="恢复" Visible="false" OnClick="btnRestore_Click" />
    </div>
    <asp:GridView ID="gvTransfer" runat="server" AutoGenerateColumns="False" Caption="<span>调动记录</span>"
        DataKeyNames="TransferID,ToUnitID" OnRowDataBound="gvTransfer_RowDataBound">
        <Columns>
            <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                <HeaderStyle Width="30px" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="FromUnit" HeaderText="调出单位" />
            <asp:BoundField DataField="ToUnit" HeaderText="调入单位" />
            <asp:BoundField DataField="TransferDate" DataFormatString="{0:yy-MM-dd}" HeaderText="调动时间" />
            <%-- <asp:BoundField DataField="Approver" HeaderText="批准人" />--%>
            <asp:BoundField DataField="SetUserName" HeaderText="操作员" />
            <asp:BoundField DataField="SetTime" DataFormatString="{0:yy-MM-dd}" HeaderText="操作时间" />
            <%--<asp:TemplateField ShowHeader="False" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:ImageButton ID="delteImage" ToolTip="删除" ImageUrl="~/Images/delete.gif" OnClientClick="return confirm('您确认删除此调动记录吗？')"
                                CommandName="Delete" runat="server" CausesValidation="false" />
                        </ItemTemplate>
                    </asp:TemplateField>--%>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
        <RowStyle HorizontalAlign="Left" />
    </asp:GridView>
    <asp:GridView ID="ArchivesGrid" runat="server" AutoGenerateColumns="False" Caption="<span>训练档案记录</span>"
        OnRowDataBound="ArchivesGrid_RowDataBound">
        <Columns>
            <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                <HeaderStyle Width="30px" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="训练档案" HeaderStyle-HorizontalAlign="Left">
                <ItemTemplate>
                    <a href='SkillList.aspx?ID=<%= Request["ID"] %>&year=<%# GetDate(Eval("Date"),true) %>&month=<%# GetDate(Eval("Date"),false) %>'>
                        <%# Eval("Date") %>训练档案</a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderStyle-Width="80" HeaderText="技能合格率" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <%# (int)(double.Parse(Eval("Score").ToString())*100) %>%
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
